Sets how fast an animated background plays: 100 is the speed it was drawn at, 200 twice as fast, 50 half as fast (from 25 to 400).
Works differently on Game Boy - An animated background plays only as the room's own picture; any other shows its first frame. It is shown in four greys. 3 squares are redrawn a frame, so a step that changes many squares arrives some frames late.
Works differently on Game Boy Color - An animated background plays only as the room's own picture; any other shows its first frame. A changing square keeps 4 colours (more are cut; the build says how many pixels). 6 squares are redrawn a frame, so a big step arrives a few frames late.
On other consoles this differs: see Side by side and How the consoles differ.
background_animation_speed(picture, percent)| Name | Type |
|---|---|
picture | tileset |
percent | int |
Nothing.
Sets how fast an animated background plays, in percent: 100 is the speed it was drawn at, 200 twice as fast, 50 half as fast. The number is kept between 25 and 400. Every frame keeps its own hold time and the speed scales all of them, so the picture keeps its rhythm.
The speed stays until another call or another room sets it. A room that lists the picture in its Backgrounds sets its own speed when it opens.
background_animation_speed(ts_doc_dungeon, 150);Plays the picture one and a half times as fast.
Every frame keeps its own hold time, scaled by the speed. A picture that is not an animated background is left alone.